package com.sponsorpay.sdk.android.advertiser;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;

public class SponsorPayAdvertiserState
{
  public static final String PREFERENCES_FILE_NAME = "SponsorPayAdvertiserState";
  private static final String STATE_GOT_SUCCESSFUL_RESPONSE_KEY = "SponsorPayAdvertiserState";
  private static final String STATE_INSTALL_REFERRER_KEY = "InstallReferrer";
  private static final String STATE_INSTALL_SUBID_KEY = "InstallSubId";
  private SharedPreferences mPrefs;

  public SponsorPayAdvertiserState(Context paramContext)
  {
    this.mPrefs = paramContext.getSharedPreferences("SponsorPayAdvertiserState", 0);
  }

  public String getCallbackReceivedSuccessfulResponse(String paramString)
  {
    return this.mPrefs.getString("SponsorPayAdvertiserState" + paramString, "0");
  }

  public String getInstallReferrer()
  {
    return this.mPrefs.getString("InstallReferrer", "");
  }

  public String getInstallSubId()
  {
    return this.mPrefs.getString("InstallSubId", "");
  }

  public void setCallbackReceivedSuccessfulResponse(String paramString, boolean paramBoolean)
  {
    SharedPreferences.Editor localEditor = this.mPrefs.edit();
    String str1 = "SponsorPayAdvertiserState" + paramString;
    if (paramBoolean);
    for (String str2 = "1"; ; str2 = "0")
    {
      localEditor.putString(str1, str2);
      localEditor.commit();
      return;
    }
  }

  public void setInstallReferrer(String paramString)
  {
    SharedPreferences.Editor localEditor = this.mPrefs.edit();
    localEditor.putString("InstallReferrer", paramString);
    localEditor.commit();
  }

  public void setInstallSubId(String paramString)
  {
    SharedPreferences.Editor localEditor = this.mPrefs.edit();
    localEditor.putString("InstallSubId", paramString);
    localEditor.commit();
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.sponsorpay.sdk.android.advertiser.SponsorPayAdvertiserState
 * JD-Core Version:    0.6.2
 */